package com.wz.project.system.employee.mapper;

import com.wz.project.system.employee.domain.Employee;
import com.wz.project.system.employee.domain.EmployeeGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface EmployeeMapper {
    List<Employee> selectEmployeeList(@Param("emp") Employee employee);

    int deleteEmployeeByIds(@Param("ids") List<String> singletonList);

    List<Employee> selectByEmployeeIds(@Param("ids") List<Integer> empIds);

    Employee selectOneById(@Param("id") Integer id);

    int insertOne(@Param("emp") Employee employee);

    int updateEmployee( @Param("emp") Employee employee);

    List<EmployeeGroup> selectEmployeeGroupIdBy(@Param("userId") Integer userId);

    Employee selectEmployeeByPhonenumber(@Param("phonenumber") String phonenumber);

    List<String> selectEnameByDid(@Param("deptId") Integer deptId );
}
